home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / MacSCAPI / Headers / SCAPIMenu.h < prev    next >
Encoding:
Text File  |  1997-05-30  |  1.3 KB  |  64 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIMenu.h               ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPIMENU_H
  6. #define SCAPIMENU_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9.  
  10.  
  11. // ---------------------------------------------------------------------------
  12. //        • SCAPIMenu Class
  13. // ---------------------------------------------------------------------------
  14.  
  15. class SCAPIMenu
  16. {
  17.     friend class SCAPIApp;
  18.     friend class SCAPIWindow;
  19.     
  20.     // ===========================================================
  21.     // === Spunk Cross API, these are the routines you can use ===
  22.     // ===========================================================
  23.     
  24.         // • Constructor - Destructor
  25.         // --------------------------
  26.         
  27.     public:
  28.     
  29.         SCAPIMenu(char*    inTitle);
  30.         
  31.         ~SCAPIMenu();
  32.         
  33.         
  34.         // • Member functions
  35.         // ------------------
  36.         
  37.     public:
  38.     
  39.         void    AddItem(int    inCommand, char*    inText);
  40.         
  41.         void    AddSeparator(void);
  42.         
  43.         
  44.     // =================================
  45.     // === Internal part, do not use ===
  46.     // =================================
  47.     
  48.         // • Member variables
  49.         // ------------------
  50.         
  51.     private:
  52.     
  53.         LMenu*    mMenuP;
  54.         
  55.         
  56.         // • Static variables
  57.         // ------------------
  58.         
  59.     private:
  60.     
  61.         static int    sMenuID;
  62. };
  63.  
  64. #endif